package com.ocom.webapi.feign;

import com.ocom.common.constant.MjRecodeUrl;
import com.ocom.common.request.exposeapi.LargeScreenRequest;
//import com.ocom.common.request.srvpaccess.GetQiaoChuRecordRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.recode.AccessRecordVo;
import com.ocom.webapi.vo.quarantineperson.YmDataGroupByMachVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "mjrecode")
public interface MjRecodeClientService {

	@PostMapping(MjRecodeUrl.URL_getAccessRecord)
	Result GetAccessRecord(@RequestBody AccessRecordVo accessRecordVo);

	// 依据设备获取统计列表 （getYmDataGroupByMach）
	@PostMapping(MjRecodeUrl.URL_getYmDataGroupByMach)
	public Result getYmDataGroupByMach(@RequestBody YmDataGroupByMachVo ymDataGroupByMachVo);

	@PostMapping(MjRecodeUrl.URL_getAccessRecNum)
	public Result  getAccessRecNum(@RequestParam("beginComId")Long beginComId, @RequestParam("endComId")Long endComId ,@RequestParam("month")String month);

	@PostMapping(MjRecodeUrl.URL_getSubDbAccessRecNum)
	public Result  getSubDbAccessRecNum(@RequestParam("beginComId")Long beginComId,@RequestParam("endComId") Long endComId ,@RequestParam("month")String month);

	@PostMapping(MjRecodeUrl.URL_getAccessMonthData)
	public Result  getAccessMonthData(@RequestParam("comId")Long comId,@RequestParam("beginMonth")String beginMonth,@RequestParam("endMonth") String endMonth );

	@PostMapping(MjRecodeUrl.URL_getSubDbAccessMonthData)
	public Result  getSubDbAccessMonthData(@RequestParam("beginComId")Long beginComId, @RequestParam("endComId") Long endComId , @RequestParam("beginMonth")String beginMonth, @RequestParam("endMonth") String endMonth );

	@PostMapping(MjRecodeUrl.URLR_recentlyAcTime)
	public Result recentlyAcTime(@RequestBody LargeScreenRequest request);

//	@PostMapping("/schoolAdminHomePageDataQuery/getClassesLeaveOrAttendSchoolRate/{times}")
//	public Result adminHomePageDataQuery(@PathVariable Long times,@RequestBody GetQiaoChuRecordRequest request);
}
